package com.yungu.swift.system.sys.dao;

import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.system.sys.model.dto.SysWayCalculationDto;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * SystemWayCalculationMapper数据库操作接口类
 **/

public interface SysWayCalculationMapper<T extends SysWayCalculationDto> extends IMapper<T> {

    @Delete("delete from t_system_way_calculation where way_uuid=#{wayUuid} and (parcel_price is null or parcel_price = '') ")
    Integer delByWay(@Param("wayUuid") String wayUuid);

    Integer addBatch(@Param("calculationDtos") List<SysWayCalculationDto> calculationDtos);
}